
# 查找当前文件下所有的源文件
aux_source_directory(. SRC_LIB_LIST)

# 生成库文件
add_library(function_shared SHARED ${SRC_LIB_LIST})
add_library(function_static STATIC ${SRC_LIB_LIST})

# 设置库文件属性
set_target_properties(function_shared PROPERTIES OUTPUT_NAME "func")
set_target_properties(function_static PROPERTIES OUTPUT_NAME "func")

# 指定库文件输出位置
set(LIBRARY_OUTPUT_PATH  ${PROJECT_SOURCE_DIR}/bin)

